package com.leeyip.mvvm.base

import android.app.Application

/**
 * Application基类
 */
open class BaseApp : Application() {

    override fun onCreate() {
        super.onCreate()
        baseApplication = this
    }

    companion object {
        lateinit var baseApplication: Application

        fun getContext(): Application = baseApplication
    }
}